import App from './App'
import Vue from 'vue'

import './uni.promisify.adaptor'
Vue.config.productionTip = false

App.mpType = 'app'

import Cell from "@/components/cell.vue"
Vue.component('cell', Cell)
import ReadmeBtn from "@/components/readmeBtn.vue"
Vue.component('ReadmeBtn', ReadmeBtn)

Vue.prototype.$myloading= function() {
	return new Promise(resolve=>{
		uni.showLoading({title:'请求中，请稍后！'})
		setTimeout(()=>{
			uni.hideLoading()
			uni.showToast({
				icon: "none",
				title:'提交成功！',
			})
			resolve()
		},1000)
	})
}

// document.addEventListener('plusready', function() {
//    plus.navigator.hideSystemNavigation() //隐藏虚拟按键
// });

// // 运行环境从前台切换到后台事件
// document.addEventListener('pause', function() {
// 	plus.navigator.hideSystemNavigation() //隐藏虚拟按键
// });
// // 运行环境从后台切换到前台事件
// document.addEventListener('resume', function() {
// 	plus.navigator.hideSystemNavigation() //隐藏虚拟按键
// });


const app = new Vue({
  ...App
})
app.$mount()